//
//  School.m
//  HotWord
//
//  Created by Rainbow on 8/28/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "School.h"

@implementation School
@synthesize schoolId;
@synthesize schoolCn;
@synthesize schoolEn;
@synthesize schoolState;
@synthesize order;

- (void)encodeWithCoder:(NSCoder *)aCoder
{
	[aCoder encodeObject:self.schoolId forKey:@"schoolId"];
	[aCoder encodeObject:self.schoolCn forKey:@"schoolCn"];
	[aCoder encodeObject:self.schoolEn forKey:@"schoolEn"];
	[aCoder encodeObject:self.schoolState forKey:@"schoolState"];
	[aCoder encodeObject:self.order forKey:@"order"];
}

- (id)initWithCoder:(NSCoder *)aDecoder
{
	if ([self init]) {
		self.schoolId = [aDecoder decodeObjectForKey:@"schoolId"];
		self.schoolCn = [aDecoder decodeObjectForKey:@"schoolCn"];
		self.schoolEn = [aDecoder decodeObjectForKey:@"schoolEn"];
		self.schoolState = [aDecoder decodeObjectForKey:@"schoolState"];
		self.order = [aDecoder decodeObjectForKey:@"order"];
    }
	return self;
}

-(void)dealloc
{
    [schoolId release];
    [schoolCn release];
    [schoolEn release];
    [schoolState release];
    [order release];
    [super dealloc];
}
@end
